Pacman hooks that I like, so they are installed
libalpm, and through it, pacman, has a concept of hooks. See alpm-hooks(5) for details.
There are a few that I’ve found pretty handy:
- etckeeper installs a hook to commit
/etc - needresetart installs a hook to check if there are any running things that need, well, to be restarted
- my reboot-required hook that triggers on broadly-used packages
- pacman-backup-hook makes a list of packages in /etc/pkglist.txt
- don’t leave ghost services with systemd-cleanup-pacman-hook
- check python modules for restart with detect-old-python-modules